// 封装与房间设置相关的接口
import request from '@/utils/request';

// 获取相关配置
export const getRoomsConfigView = () => request({ url: '/admin/rooms/config/view' });

interface configData {
  id: number;
  defaultCheckoutTime: string;
  defaultCheckinDay: number;
  defaultCheckoutConfig: number;
  defaultCardTimeoutAlarm: number;
  defaultCardFalseLockAlarm: number;
  defaultCardMute: number;
  defaultCardOverwrite: number;
  defaultCheckInSource: string;
  defaultCheckInPeople: string;
  defaultCheckInMobile: string;
  defaultCheckInIdCard: string;
}
// 新增修改相关配置
export const postRoomsConfigEdit = (data: configData) =>
  request({ url: '/admin/rooms/config/edit', method: 'post', data });
